import request from '@/utils/request'

// 查询设备分类列表
export function listDeviceClass(query) {
  return request({
    url: '/ruoyi-device/deviceClass/list',
    method: 'get',
    params: query
  })
}

// 查询设备分类详细
export function getDeviceClass(id) {
  return request({
    url: '/ruoyi-device/deviceClass/' + id,
    method: 'get'
  })
}

// 新增设备分类
export function addDeviceClass(data) {
  return request({
    url: '/ruoyi-device/deviceClass',
    method: 'post',
    data: data
  })
}

// 修改设备分类
export function updateDeviceClass(data) {
  return request({
    url: '/ruoyi-device/deviceClass',
    method: 'put',
    data: data
  })
}

// 删除设备分类
export function delDeviceClass(id) {
  return request({
    url: '/ruoyi-device/deviceClass/' + id,
    method: 'delete'
  })
}
